<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Which is better - results</title>
        <link type="text/css" rel="stylesheet" href="<?php base_url(); ?>/final/wib.css" />
    </head>
    <body>
        <div id="header"><h1>Which is Better</h1></div>

        <div id="navcontainer">
            <ul id="navlist">
                <li id="active" />
                <li><a href="<?php base_url(); ?>/final/index.php/index/main">Home</a></li>
                <li><a href="<?php base_url(); ?>/final/index.php/index/user_page">User Page</a></li>
                <li><a href="<?php base_url(); ?>/final/index.php/index/result_page">Winners</a></li>
            </ul>
        </div>

        <div id="wrapper">
        <h2>Top Images</h2>

        <table>
            <?php foreach($result as $row): ?>
            <tr>
                <td><img src="<?php base_url(); ?>/final/image/<?php echo $row->Image; ?>" alt="<?php echo $row->Note; ?>" /></td>
                <td><?php echo $row->Note; ?></td>
            </tr>
            <?php endforeach; ?>
        </table>
        </div>

    </body>
</html>
